package cn.edu.xmu.orderpayment.order.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Li Yixuan 22920192204232
 * @create: 2021/12/18
 */
@Data
@ApiModel(description ="订单明细传值对象")
public class OrderItemVo {

    @ApiModelProperty(value = "商品product_id")
    @NotNull
    @Min(value = 1)
    private Long productId;

    @ApiModelProperty(value = "商品onsale_id")
    @NotNull
    @Min(value = 1)
    private Long onsaleId;

    @ApiModelProperty(value = "商品数量")
    @Min(value = 1)
    private Long quantity;

    @ApiModelProperty(value = "优惠活动id")
    private Long couponActivityId;

    @ApiModelProperty(value = "使用积分")
    private Long point;

    @ApiModelProperty(value = "使用优惠券id")
    private Long couponId;

}
